import request from "@/utils/request";

export function noticeAll() {
  return request({
    url: "/home/notice/manage/list",
    method: "post",
  });
}

export function addNotice(data) {
  return request({
    url: "/home/notice/manage/add",
    method: "post",
    data: data,
  });
}

export function delNotice(data) {
  return request({
    url: "/home/notice/manage/del",
    method: "post",
    data: data,
  });
}

export function updateNotice(data) {
  return request({
    url: "/home/notice/manage/update",
    method: "post",
    data: data,
  });
}

export function queryNoticeById(data) {
  return request({
    url: "/home/notice/manage/list/id",
    method: "post",
    data: data,
  });
}
